Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made _resolve_device_id more robust when following via_devices #166

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

bullitt186
Copy link
Contributor

Fixed that for some users calling E3DC services resulted in a "Device is no E3DC"-Error.

Root cause:
Other (Non-E3DC) devices from other integrations can be a via_device for the E3DC.
When introducing the wallbox devices, i added the functionality in _resolve_device_id() to follow the via_device to come from the wallbox to the E3DC Hauskraftwerk. However when following the via_device, there was no additional check if the upstream-device was also in the E3DC domain.
This led in my case e.g. that the service tried to call my Fritz!Box.

Fix:
Only follow the via_device if it's type is also E3DC.

@torbennehmer torbennehmer added the bug Something isn't working label Jul 20, 2024
@torbennehmer torbennehmer merged commit 8b570f6 into torbennehmer:main Jul 20, 2024
5 checks passed
@bullitt186 bullitt186 deleted the ResolveDeviceID-Fix branch July 20, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants